package com.atguigu.distributed.lock.controller;

import com.atguigu.distributed.lock.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author BLADE
 * @description:
 * @data 2024/4/2410:35
 */
@RestController
public class StockController {
    @Autowired
    private StockService stockService;
    @GetMapping("stock/deduct")
    public String deduct(){
        this.stockService.deduct();
        return "hello";
    }
}
